#include "../Diagnostic/Diagnostic.h"

Diagnostic::Diagnostic(PicParams* params_, ParallelMPI* pmpi_, Grid* grid_, PhysicalField* fields_, vector<Species*>* vecSpecies_, vector<Collision*>* vecCollision_, vector<PSI*>* vecPSI_) :
    params(params_),
    pmpi(pmpi_),
    grid(grid_),
    fields(fields_),
    vecSpecies(vecSpecies_),
    vecCollision(vecCollision_),
    vecPSI(vecPSI_),
    n_species(params_->species_param.size()),
    n_collision(vecCollision_->size()),
    n_psi(vecPSI_->size())
{
    if(params->diagnostic_param.size() == 1)
    {
        diagnostic_param = params->diagnostic_param[0];
    }
}
